<!doctype html>
<html lang="en">
<head>
<?=set_base();?>
<meta charset="UTF-8">
<title>Dashboard - Admin Template</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/content1.css" />
</head>
<body>
<script src="/static/js/jquery-1.11.1.js"></script> 
<script src="/static/js/plugin/box/box.js"></script> 
<script src="js/global.js"></script> 
<script>
$(function(){
	global_obj.tableLine();
	global_obj.order_ctrl(function(str,group_id){
        $.post(global_obj.webmaster+'/article/order_action/',{
            'str'       :   str,
            'group_id'  :   group_id
        },function(data){
            if(data.ret==1){
                window.location.reload();
            }
        },'json');
    });
});
</script>
<div id="wrapper">
    <div id="content">
        <div id="box">
            <h3 class="reallynow">
                <span><?=$title?></span>
            </h3>
            <div class="group_btn">
            	<div class="section1">
                	<a href="<?=base_url('article/edit/'.$string.'/')?>" class="add add_btn">添加</a>&nbsp;&nbsp;
                    <?php if($configuration['isOrder']){?>
                    <a href="javascript:void(0)" class="invoices invoices_btn">排序</a>
                    <?php }?>
                </div>
                <!--<div class="section2">
                	<input type="text" class="form_input_160 btn_bg">   
                	<input type="button" class="form_btn_60 btn_bg" value="搜索"> 
                </div>   -->
            </div>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <th width="3%">序号</th>
                        <?php if($configuration['isOrder']){?>
                        <th width="3%">排序</th>
                        <?php }?>
                        <th width="75%" align="left">标题</th>
                        <th width="12%">上传时间</th>
                        <th width="8%">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($query->result_array() as $k=>$v){?>
                    <tr>
                        <td height="23" align="center"><?=$k+1?></td>
                        <?php if($configuration['isOrder']){?>
                        <td height="23" align="center"><input type="input" class="form_input_30 order_input" order_id="<?=$v['AId']?>" maxlength="5" value="<?=$v['MyOrder']?>"></td>
                        <?php }?>
                        <td height="23" align="left"><a class="block" href="<?=base_url('article/edit/'.$string.'/'.$v['AId'].'/')?>"><?=$v['Title']?></a></td>
                        <td height="23" align="center"><?=date('Y-m-d H:i:s',$v['AccTime'])?></td>
                        <td height="23" align="center">
                        	<a href="<?=base_url('article/edit/'.$string.'/'.$v['AId'].'/')?>"><img src="img/icons/user_edit.png" title="Edit user" width="16" height="16" /></a>
                            <a href="<?=base_url('article/del/'.$string.'/'.$v['AId'].'/')?>" onclick="if(!confirm('您确定删除该项？')){return false}"><img src="img/icons/user_delete.png" title="Delete user" width="16" height="16" /></a>
                        </td>
                    </tr>
                    <?php }?>
                </tbody>
            </table>
            <div id="pager"><?=$turn_page;?></div>
        </div>
    </div>
</div>
</body>
</html>
